package com.ds.infrastructure.audit.client.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 作用：
 *
 * @author WeiShaoying
 * @date 2020/7/29
 */
@Component
@Data
@ConfigurationProperties(prefix = "audit.mq")
public class AuditConfig {

    //TODO: 考虑把各种协议属性都放到这里

    private String brokers;

    private Integer batchSize;

    private Integer linger;

    private Integer bufferMemory;

    @Value("${audit.appName}")
    private String appName;

    @Value("${audit.appKey}")
    private String appKey;

}
